<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8" />
<TITLE>KnifeCMS后台登录</TITLE>
<LINK href="/include/manage/images/login/User_Login.css" type=text/css rel=stylesheet />
#if($msg)
<script>
alert('$msg');
</script>
#end
<script language="javascript">
<!--
if(self.parent.frames.length!=0){
	self.parent.location=document.location.href;
}else{
/*
#if($casLogin)
*/
	document.location.href='$casLogin';
/*
#end
*/
}

function checkForm(theForm){
	if(theForm.username.value==""){
		alert("用户名不能为空！");
		theForm.username.focus();
		return false;
	}
	if(theForm.password.value==""){
		alert("密码不能为空！");
		theForm.password.focus();
		return false;
	}
	if(theForm.randomCode.value==""){
		alert("验证码不能为空！");
		theForm.randomCode.focus();
		return false;
	}
	return true;
}

function reloadImg(id) {
   var obj = document.getElementById(id);
   var src = obj.src;
   var pos = src.indexOf('?');
   if (pos >= 0) {
      src = src.substr(0, pos);
   }
   var date = new Date();
   obj.src = src + '?v=' + date.getTime();
   return false;
}
//-->
</script>
</HEAD>
<BODY id=userlogin_body>
<form action="/admin.ad" method="post" name="theForm"  onsubmit="return checkForm(this)">
<input name="parameter" type="hidden" value="login" />
<input name="document_show" type="hidden" value="0" />
<DIV></DIV>
<DIV id=user_login>
<DL>
  <DD id=user_top>
  <UL>
    <LI class=user_top_l></LI>
    <LI class=user_top_c></LI>
    <LI class=user_top_r></LI></UL>
  <DD id=user_main>
  <UL>
    <LI class=user_main_l></LI>
    <LI class=user_main_c>
    <DIV class=user_main_box>
    <UL>
      <LI class=user_main_text>用户名： </LI>
      <LI class=user_main_input><INPUT style="margin-top:6px;" class=TxtUserNameCssClass id=TxtUserName 
      maxLength=20 name=username> </LI></UL>
    <UL>
      <LI class=user_main_text>密　码： </LI>
      <LI class=user_main_input><INPUT style="margin-top:6px;" class=TxtPasswordCssClass id=TxtPassword 
      type=password name=password> </LI></UL>
    <UL>
      <LI class=user_main_text>验证码： </LI>
      <LI class=user_main_input><div style="width:120px;margin-top:6px;">
      <INPUT name="randomCode" type="text" maxlength="4" style="border:1px solid gray;float:left;width:55px;height:20px;"/><img id="vcode" src="/valicode" align="absmiddle" style="float:right;border:1px solid gray;cursor:pointer;" alt="验证码看不清楚？请点击刷新验证码" onClick="return reloadImg('vcode');" />
      </div></LI></UL></DIV></LI>
    <LI class=user_main_r><INPUT class=IbtnEnterCssClass id=IbtnEnter 
    style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" 
    type=image src="/include/manage/images/login/user_botton.gif" name=IbtnEnter> </LI></UL>
  <DD id=user_bottom>
  <UL>
    <LI class=user_bottom_l></LI>
    <LI class="user_bottom_c" style="position:relative">
			<div style="position:absolute;left:-120px;width:565px;top:48px;line-height:32px!important;text-align:center">
			<p>智富者科技 <A href="http://www.knifecms.com/" target="_blank">KnifeCMS.COM</A> 著作权登记号:2011SR102015</p>
			</div>
		</LI>
    <LI class=user_bottom_r></LI></UL></DD></DL></DIV>
    <SPAN id=ValrUserName style="DISPLAY: none; COLOR: red"></SPAN>
    <SPAN id=ValrPassword style="DISPLAY: none; COLOR: red"></SPAN>
    <SPAN id=ValrValidateCode style="DISPLAY: none; COLOR: red"></SPAN>
<DIV id=ValidationSummary1 style="DISPLAY: none; COLOR: red"></DIV>
<DIV></DIV>
</FORM>
</BODY>
</HTML>